<template>
	<view class="upload-main" v-else @click="chooseVideo">
		<template v-if="fileList.length">
			<view class="item" v-for="(item,index) in fileList">

			</view>
		</template>

		<view class="item">
			<u-icon name="plus" color="#606266" size="40"></u-icon>
			<view class="text" style="color: #606266;">
				选择文件
			</view>
		</view>
		<u-popup v-model="show">
			<view class="prop-main">
				
			</view>
		</u-popup>
	</view>
</template>
<style lang="scss" scoped>
</style>

<script>
	export default {
		props: {

		},
		data() {
			return {
				fileList: [],
				popupVisable: false
			}
		},
		methods: {
			chooseFile() {
				// 打开选择图片或视频
				this.
			},
			openFilePicker(type = 'image') {
				uni.chooseFile({
					type: type,
					sourceType: ['camera', 'album'], // 允许从相机拍摄和相册选择
					success: (res) => {
						if (res.tempFilePath) {
							this.uploadDatas.videoPath = res.tempFilePath
						}
					}
				});
				// if (type === 'image') {
				// 	uni.chooseFile({
				// 		type: type,
				// 		sourceType: ['camera', 'album'], // 允许从相机拍摄和相册选择
				// 		success: (res) => {
				// 			if (res.tempFilePath) {
				// 				// this.uploadVideo(res.tempFilePath);
				// 				this.uploadDatas.videoPath = res.tempFilePath
				// 			}
				// 		}
				// 	});
				// }

			},
		}
	}
</script>